package com.choudou5.solr.framework.bean;

import java.util.Date;

/**
 * @name 用户实体
 * @author choudou5
 * @date 2018-7-13
 */
public class UserBean extends BaseBean<Integer>  {

    private Integer id;

    /**
     * name 姓名
     */
    private String name;
    /**
     * password 密码
     */
    private String password;
    /**
     * role 角色 0=普通，1=管理员，2=超级管理员
     */
    private String role;
    /**
     * email 邮箱
     */
    private String email;
    /**
     * phone 电话
     */
    private String phone;
    /**
     * position 职位信息
     */
    private String position;
    /**
     * login_ip 最后登陆ip
     */
    private String loginIp;
    /**
     * login_time 最后登陆时间
     */
    private java.util.Date loginTime;
    /**
     * remarks 备注信息
     */
    private String remarks;
    /**
     * status 状态: 0=禁用，1=正常, 2=离职
     */
    private String status;

    /** 创建人 */
    private Integer createBy;
    /** 创建时间 */
    private java.util.Date createTime;
    /** 修改人 */
    private Integer updateBy;
    /** 修改时间 */
    private java.util.Date updateTime;

    public boolean isNew() {
        return id==null;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
